/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.currency;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 系统币种设置Entity
 * @author 罗天文
 * @version 2018-05-08
 */
public class HkCurrency extends DataEntity<HkCurrency> {
	
	private static final long serialVersionUID = 1L;
	private String currencyType;		// 系统币种
	private double rate;		// 兑换乐币比例
	
	public HkCurrency() {
		super();
	}

	public HkCurrency(String id){
		super(id);
	}

	@Length(min=0, max=1, message="系统币种长度必须介于 0 和 1 之间")
	public String getCurrencyType() {
		return currencyType;
	}

	public void setCurrencyType(String currencyType) {
		this.currencyType = currencyType;
	}
	
	public double getRate() {
		return rate;
	}

	public void setRate(double rate) {
		this.rate = rate;
	}
	
}